import {
    Model,
    Table,
    PrimaryKey,
    AutoIncrement,
    Column,
    Sequelize
} from "sequelize-typescript";

@Table({
    modelName: "admin"
})
export default class Admin extends Model<Admin> {
    @PrimaryKey
    @AutoIncrement
    @Column(Sequelize.INTEGER(64))
    adminId: number;

    @Column(Sequelize.STRING)
    adminName: string;

    @Column(Sequelize.STRING)
    adminPass: string;

    @Column
    salt: string;

    @Column(Sequelize.STRING)
    tokenKey: string;

    @Column(Sequelize.DATE)
    tokenOverTime: Date;
}